﻿using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Configuration.Json;
namespace Carlife.APi.Data
{
    public class ConfigHelper
    {
        public static IConfigurationRoot Configuration { get; set; }
        //类用来读取appsettings.json文件中的配置信息
        static ConfigHelper()
        {
            Configuration = new ConfigurationBuilder()
                .Add(new JsonConfigurationSource { Path = "appsettings.json", ReloadOnChange = true })
                .Build();
        }
    }
}
